package ch.pizzapp.kurier.data;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonProperty;

public class PlaceDataList implements Parcelable {

	@JsonProperty("items")
	List<PlaceData> placeDataDataList;

	@JsonProperty("status")
	String status;

	public List<PlaceData> getPlaceDataDataList() {
		return this.placeDataDataList;
	}

	public void setPlaceDataDataList(List<PlaceData> placeDataDataList) {
		this.placeDataDataList = placeDataDataList;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	protected PlaceDataList(Parcel in) {
		placeDataDataList = new ArrayList<PlaceData>();
		in.readList(placeDataDataList, PlaceData.class.getClassLoader());
		status = in.readString();
	}

	public PlaceDataList() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(placeDataDataList);
		dest.writeString(status);
	}

	public static final Parcelable.Creator<PlaceDataList> CREATOR = new Parcelable.Creator<PlaceDataList>() {
		public PlaceDataList createFromParcel(Parcel in) {
			return new PlaceDataList(in);
		}

		public PlaceDataList[] newArray(int size) {
			return new PlaceDataList[size];
		}
	};
}